﻿<%@ Page Language="C#"  AutoEventWireup="true" CodeFile="SearchAndDelTeacher.aspx.cs" Inherits="TeacherList" Title="Untitled Page" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head  runat="server">
    <title> 教师信息</title>
     <link href="../Css/ys.css" rel="stylesheet" type="text/css" />
     <script src="../Js/jquery-1.4.2.min.js" type="text/javascript"></script>
      <script src="../Js/tablehover.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript" src="../JS/ValidationAboutHumanBeing.js"></script>
<script language="javascript" type="text/javascript" src="../JS/AuthCode.js"></script>
<script language="javascript" type="text/javascript" src="../JS/Core.js"></script>
<script>
    function Enable(id, type) { 
        
    }
</script>
</head>
<body>
      <form id="form1" runat="server">
    <div style="margin-left: 5px">
        <div class="title">
            <div class="titleLeft">
               查看教师信息</div>
        </div>
  
     <div id="search" class="search2">
                <table cellspacing="1" cellpadding="3" border="0">
                    <tr>
                        <td class="noWrapTD">
   按姓名查找</td><td><asp:TextBox ID="TxtCheckName" runat="server" Width="100" CssClass="inp1"></asp:TextBox></td><td><asp:Button ID="Seacher" runat="server" Text="查找" CssClass="button" onclick="Seacher_Click" /></td>
   <td>&nbsp; &nbsp;</td>
<td><asp:Button ID="Button1" runat="server" Text="添加教师" CssClass="button"
        onclick="Button1_Click" /></td><td><asp:Label ID="LabMessage" runat="server" Text=""></asp:Label><asp:Label ID="Label1"
       runat="server" Text=""></asp:Label></td>
  </tr></table></div>
  <br class="sp3px" />
       <table class="tab_alt" style="width: 100%" cellpadding="0" cellspacing="0">
      <tr class="header">
       <td class="noWrapTD">操作</td>
    <td  class="noWrapTD">教师姓名</td>
    <td  class="noWrapTD" >联系电话</td>
    <td  class="noWrapTD">邮箱</td>
    <td  class="noWrapTD">所属学校</td>
    <td  class="noWrapTD">个人描述</td>
    <td  class="noWrapTD">创建时间</td>
     <td  class="noWrapTD">操作</td>
     
    </tr>  <asp:Repeater ID="Repeater1" runat="server">
           <ItemTemplate>
           <tr class="<%# Container.ItemIndex%2==1?"odd":"" %>">
           <td class="ta2"> <asp:LinkButton CssClass="button2" ID="btnUpdate" runat="server" CommandArgument='<%#Eval("ID")%>' OnCommand="btnUpdate_Click" Text="修改信息"></asp:LinkButton><asp:LinkButton CssClass="button2" ID="btnDelete"  style="display:none" runat="server" CommandArgument='<%#DataBinder.Eval(Container.DataItem,"ID") %>' OnCommand="btnDelete_Command" OnClientClick='return confirm("确定要删除么？")' Text="删除"></asp:LinkButton></td>
           <td class="ta2"><%#Eval("VT_realname")%>&nbsp;</td>
           <td class="ta2"><%#Eval("VT_mobile")%>&nbsp;</td>
           <td class="ta2"><%#Eval("VT_email")%>&nbsp;</td>
           <td class="ta2"> <%# GetSchNameByID((int)Eval("SchoolID"))%>&nbsp;</td>
           <td class="ta2" onmouseover="this.title = this.innerText" >
             <div  style="overflow: hidden; width: 270px; white-space: nowrap; text-overflow: ellipsis;"><%#Eval("VT_desc")%>&nbsp;</div></td>
           <td class="ta2"><%#Eval("create_time")%>&nbsp;</td>
              <td class="ta2"><%#Convert.ToInt32(Eval("VT_IsEnable")) == 1 ? "<a  onclick='Enable(" + Eval("id") + "," + Eval("VT_IsEnable") + ")'><font color='green'>已启用</font></a>" : "<a  onclick='Enable(" + Eval("id") + "," + Eval("VT_IsEnable") + ")'><font color='red'>未启用</font></a>"%></td>
           </tr>
            </ItemTemplate>
            </asp:Repeater>
             </table>
              <br class="sp3px" />
            <webdiyer:AspNetPager ID="pager" runat="server" 
                onpagechanged="pager_PageChanged"   CssClass="anpager" CurrentPageButtonClass="cpb"  PageSize="20" >
            </webdiyer:AspNetPager>
 </div>
 <input type="button" value="返回" onclick="window.history.go(-1)" class="button"  id="back" runat="server" style="display:none" />
</form>
</body>
</html>


